<template>
  <div>
    <el-empty description="开发中..."></el-empty>
  </div>
</template>

<script>
import * as echarts from 'echarts';
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.8.7",
      // 遮罩层
      loading: false, //false true
      memuList: [
        {
          iocon: require("@/assets/images/shiziguanlihoutai.png"),
          tetxt: "师资管理",
          url:'/information/teachers',
        },
        {
          iocon: require("@/assets/images/xueshenggl.png"),
          tetxt: "学生管理",
          url:'/information/student'
        },
        {
          iocon: require("@/assets/images/cepingbaogao.png"),
          tetxt: "测评报告",
          url:'/warningEvaluation/evaluationReport',
        },
        {
          iocon: require("@/assets/images/yujingguanli.png"),
          tetxt: "测评预警",
          url:'/warningEvaluation/evaluationReport'
        },
        {
          iocon: require("@/assets/images/shujufenxi.png"),
          tetxt: "数据分析",
          url:'/warningEvaluation/dataAnalysis'
        },
        {
          iocon: require("@/assets/images/Chairty.png"),
          tetxt: "心理宣教",
          url:'/healthCounseling/healthEducation',
        },
        {
          iocon: require("@/assets/images/tuanti.png"),
          tetxt: "团体辅导",
          url:'/healthCounseling/groupGuidance',
        },
        {
          iocon: require("@/assets/images/gerenbangongdefault.png"),
          tetxt: "专家讲座",
          url:'/healthCounseling/expertTalks',
        },
        {
          iocon: require("@/assets/images/liangbiao.png"),
          tetxt: "量 表",
          url:'/healthCounseling/expertTalks',
        },
        {
          iocon: require("@/assets/images/shiti.png"),
          tetxt: "试题库",
          url:'/repository/itemBank',
        },
        {
          iocon: require("@/assets/images/zhishi.png"),
          tetxt: "知识库",
          url:'/repository/knowledgeBase'
        },
        {
          iocon: require("@/assets/images/wentikuguanli.png"),
          tetxt: "问题库",
          url:'/repository/problemBase'
        },
        {
          iocon: require("@/assets/images/wenbjuan.png"),
          tetxt: "问卷库",
          url:'/repository/questionnaire'
        },
      ],
      issueList: [
        {
          index: 1,
          formName: "问题1",
          createTime: "2024-07-04",
        },
        {
          index: 2,
          formName: "问题2",
          createTime: "2024-07-04",
        },

        {
          index: 3,
          formName: "问题3",
          createTime: "2024-07-04",
        },

        {
          index: 4,
          formName: "问题4",
          createTime: "2024-07-04",
        },
      ],
      testProgress: [
        {
          index: 1,
          formName: "问题1",
          nuBers: 0,
          createTime: "2024-07-04",
        },
        {
          index: 2,
          formName: "问题2",
          nuBers: 70,
          createTime: "2024-07-04",
        },

        {
          index: 3,
          formName: "问题3",
          nuBers: 100,
          createTime: "2024-07-04",
        },

        {
          index: 4,
          formName: "问题4",
          nuBers: 80,
          createTime: "2024-07-04",
        },

        {
          index: 5,
          formName: "问题4",
          nuBers: 60,
          createTime: "2024-07-04",
        },
        {
          index: 6,
          formName: "问题4",
          nuBers: 60,
          createTime: "2024-07-04",
        },
      ],
      warningList: [
        {
          index: 1,
          formName: "问题1",
          live: 1,
          createTime: "2024-07-04",
        },
        {
          index: 2,
          formName: "问题2",
          live: 2,
          createTime: "2024-07-04",
        },

        {
          index: 3,
          formName: "问题3",
          live: 3,
          createTime: "2024-07-04",
        },

        {
          index: 4,
          formName: "问题4",
          live: 2,
          createTime: "2024-07-04",
        },

        {
          index: 5,
          formName: "问题4",
          live: 1,
          createTime: "2024-07-04",
        },
        {
          index: 6,
          formName: "问题4",
          live: 2,
          createTime: "2024-07-04",
        },
      ],
    };
  },
  mounted() {
    this.init()
  },
  created() {
  },

  methods: {
    menmuClik(url){
this.$router.push({ path:url,})
    },
 init() {
      var chartDom = document.getElementById('main2');
      var myChart = echarts.init(chartDom);
      var option;

      option = {
        title: {
          // text: '实际列收',
          //  subtext: '模拟数据',
          // x: 'center',
          textStyle: {
            fontSize: 14
          }
        },
        // 提示框
        tooltip: {
          trigger: 'axis'
        },
        xAxis: {
          name: '类型',
          type: 'category',
          data: ['躯体化', '强迫症', '人际关系', '抑郁', '焦虑', '敌对', '恐怖','偏执'],
                // 设置X轴数据旋转倾斜
                axisLabel: {
            // rotate: 30, // 旋转角度
            interval: 0  //设置X轴数据间隔几个显示一个，为0表示都显示
          },
        },
        yAxis: {
          name: '人数',
          type: 'value'
        },
        series: [
          {
            name: '人数',
            data: [120, 110, 130, 80, 70, 100, 90,80],
            type: 'bar',
            barWidth: 20,//柱图宽度
            itemStyle: {
              color: '#5087ec', // 柱子颜色
              borderRadius: [5, 5, 0, 0], //柱子 上 右 下 左 圆角
            }
          }
        ]
      };

      option && myChart.setOption(option);
    }
  },
};
</script>

<style scoped lang="scss" >
.home {
  display: grid;
  grid-template-columns: 49.5% 49.5%;
  grid-gap: 1%;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  img {
    width: 100%;
    height: 100%;
  }
  .letfBox {
    //display: grid;
    //grid-template-columns: 49.5% 49.5%;
    //grid-gap: 1%;
  }
  .rightBox {
    //width: 49%;
    .rightText {
      padding: 5px 8px 8px 6px;
      height: 266px;
      background-color: #fff;
    }
  }
  .memuBox {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    grid-gap: 15px 0;
    padding: 15px !important;
    border-radius: 6px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    .items_box {
      //border: 1px solid red;
      .itemsImg {
        width: 38px;
        height: 38px;
        margin: auto;
      }
      .itemsText {
        text-align: center;
        font-size: 14px;
        margin-top: 4px;
      }
    }
  }

  .interval {
    margin-top: 10px;
    width: 100%;
    padding: 3px 6px 6px 5px;
    background-color: #fff;
    .policyBox {
      width: 100%;
      padding: 5px 5px;
      border: 0.5px solid #eef0f9;
      border-radius: 5px;
    }

    .even {
      width: 35%;
      height: 180px;
    }
    .messglist {
      width: 100%;
      height: 30px;
      line-height: 30px;
      display: flex;
      // border-bottom: 1px solid #4ca9ff;
      margin-bottom: 5px;
      padding-left: 15px;
      .messg {
        font-size: 14px;
        font-weight: 600;
        color: #5d9aff;
      }
      .nubers {
        width: 14px;
        height: 14px;
        background-color: #5d6d7e;
        border-radius: 50%;
        margin: auto 0;
        margin-right: 5px;
      }
      .listbox {
        width: calc(100% - 140px);
        height: 30px;

        font-size: 14px;
        line-height: 30px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis !important;
      }
      .timetbox{
        width: 100px;
         height: 30px;
        font-size: 14px;
        line-height: 30px;
        margin-left: 10px;
      }
    }
  }
  .liveCss {
    width: 20%;
    display: flex;
    margin-top: 5px;
  }
  .yiji {
    margin: 0 auto;
    width: 40px;
    height: 20px;
    background-color: #d9001b;
    line-height: 20px;
    font-size: 12px;
    text-align: center;
  }
  .erji {
    margin: 0 auto;
    width: 40px;
    height: 20px;
    background-color: #fb8c5b;
    line-height: 20px;
    font-size: 12px;
    text-align: center;
  }
  .saji {
    margin: 0 auto;
    width: 40px;
    height: 20px;
    background-color: #feff69;
    line-height: 20px;
    font-size: 12px;
    text-align: center;
  }
  .caption {
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: 30px;
    line-height: 30px;
    padding: 0 5px;
    border-bottom: 1px solid #4ca9ff;
  }
  .messg {
    font-size: 14px;
  }
  .more {
    font-size: 14px;
    color: #2888e8;
    margin-right: 10px;
  }
  .titleText {
    padding: 5px 8px 8px 6px;
    height: 225px;
    overflow-x: hidden;
    overflow-y: scroll;
  }
  .minroof {
    width: 100%;
    // padding: 3px 6px 6px 5px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    .backlogBox {
      width: 49.9%;
      padding: 5px 5px;
      border: 0.5px solid #eef0f9;
      border-radius: 5px;
    }

    .even {
      width: 35%;
      height: 180px;
    }
    .messglist {
      width: 100%;
      height: 30px;
      line-height: 30px;
      display: flex;
      border-bottom: 1px solid #4ca9ff;
      margin-bottom: 5px;
      padding-left: 15px;
      .messg {
        font-size: 14px;
        font-weight: 600;
        color: #5d9aff;
      }
      .nubers {
        width: 20px;
        height: 20px;
        background-color: #4ca9ff;
        border-radius: 50%;
        color: #fff;
        text-align: center;
        line-height: 20px;
        margin: auto 0;
        margin-right: 5px;
      }
      .listbox {
        width: calc(100% - 30px);
        height: 30px;
        color: #5d9aff;
        font-size: 14px;
        line-height: 30px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis !important;
        color: #5d9aff;
      }
    }
  }
}
</style>

